package com.jiu345.api.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.jiu345.api.mapper.GoodsDetails;
import com.jiu345.api.pojo.*;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * package:CategoryVo
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:商品详情
 */
@EqualsAndHashCode(callSuper = true)
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsVo extends BaseEntity {

    private Long id;
    /* 品牌ID*/
    private Long brandId;

    /* 商品分类*/
    private Long category1Id;
    private String category1Name;
    private Long category2Id;
    private String category2Name;
    private Long category3Id;
    private String category3Name;

    /* 商品名称*/
    private String name;
    /* 商品副标题*/
    private String subName;
    /*价格*/
    private Integer price;
    /*市场价格*/
    private Integer oldPrice;
    /* 销售量*/
    private Integer sale;
    /* 收藏量*/
    private Integer collect;
    private Date createTime;
    /*其他*/
    /*商品SKU信息*/
    @TableField(exist = false)
    private List<GoodsSkus> skus;
    /*商品规格信息*/
    @TableField(exist = false)
    private List<SkusSpec> specs;
    /*轮播图*/
    private List<String> imageUrl;
    /*详情*/
    private GoodsDetails goodsDetails;

}
